import requests
r = requests.get('http://www.qq.com/')
r.url